package jco3.sessionManagement_JCoContext_Different;

import com.sap.conn.jco.ext.JCoSessionReference;
import com.sap.conn.jco.ext.SessionException;
import com.sap.conn.jco.ext.SessionReferenceProvider;

public class SessionReferencProviderImpl implements SessionReferenceProvider {

	@Override
	public JCoSessionReference getCurrentSessionReference(String arg0) {
		/**
         *  We need to override getCurrentSessionReference() method
         */
		JCoSessionRefenceImpl sessionRef = new JCoSessionRefenceImpl();
		return sessionRef;
	}

	@Override
	public boolean isSessionAlive(String arg0) {
		return false;
	}

	@Override
	public void jcoServerSessionContinued(String arg0) throws SessionException {
	}

	@Override
	public void jcoServerSessionFinished(String arg0) throws SessionException {
	}

	@Override
	public void jcoServerSessionPassivated(String arg0) throws SessionException {
	}

	@Override
	public JCoSessionReference jcoServerSessionStarted() throws SessionException {
		return null;
	}

}
